package com.xmutca.core.mq.consumer;

import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

/**
 * @author: 彭伟煌(pengweihuang@xmutca.com)
 * @create: 2016-07-12 11:57
 */
public class Main {

    public static void main(String[] args) throws IOException {
        AbstractApplicationContext ctx = new ClassPathXmlApplicationContext("rabbitmq-consumer.xml");
        ctx.start();
        System.out.println("press to exit!");
        System.in.read();
    }
}
